package com.lst.api.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: Frank
 * @date: 2019/09/24 13:51
 * @version: V1.0
 */
@Data
@NoArgsConstructor
public class AccessTokenVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "ticket", value = "登录凭据，在需要登录的接口的header中以access-token作为key，该字段值前缀加入Bearer 作为值（注意有个空格）", required = true, dataType = "String")
    private String ticket;
    @ApiModelProperty(hidden = true)
    @JsonIgnore
    private String accessToken;
    @JsonIgnore
    @ApiModelProperty(hidden = true)
    private String random;
    @JsonIgnore
    @ApiModelProperty(hidden = true)
    private Integer expireIn;

    public AccessTokenVo(String ticket, int expireIn, String accessToken, String random) {
        this.ticket = ticket;
        this.accessToken = accessToken;
        this.random = random;
        this.expireIn = expireIn;
    }

}
